﻿<cfscript>
/** 
* ORM Student
* 
* @hint "Hibernate persistenter t_student. 定义学生的基本数据项" 
* 
*/ 

component 
	displayname="public.service.orm.senate.Student" 
	output=false 
	persistent=true 
	selectBeforeUpdate=true dynamicInsert=true dynamicUpdate=true 
	cacheuse="Transactional" 
	entityname="Student" 
	table="t_student"
	{

	property type="string" name="StudentID" column="stu_id" fieldtype="id" generator="assigned" hint="学号";
	
	property type="string" name="StudentName" column="stu_name" hint="姓名";
	property type="string" name="Pinyin" column="stu_pyidx" hint="姓名拼音";
	property type="string" name="EnglishName" column="stu_name_english" hint="英文名";
	property type="string" name="UsedName" column="stu_name_used" hint="曾用名";
	property type="string" name="Sex" column="stu_sex" hint="性别";
	property type="string" name="Birthday" column="stu_birthday" hint="出生日期";
	property type="string" name="IDCard" column="stu_idcard" hint="证件号";
	property type="string" name="SubjectDirection" column="sbj_direction" hint="专业方向号";

	property name="StudentStatus" fieldtype="one-to-one" cfc="StudentStatus" hint="学生学籍状态";
	property name="StudentMarkProfile" fieldtype="one-to-one" cfc="StudentMarkProfile" hint="学生成绩档案辅助信息";

	property name="ProfileChanges" type="array" lazy="true" inverse="true" cascade="delete-orphan" fieldtype="one-to-many" fkcolumn="stu_id" cfc="StudentChange" hint="学籍异动记录";
	property name="SecondDegrees" type="array" lazy="true" inverse="true" cascade="delete-orphan" fieldtype="one-to-many" fkcolumn="stu_id" cfc="StudentSecondDegree" hint="学生双学位修读信息";
	property name="AssistSubjects" type="array" lazy="true" inverse="true" cascade="delete-orphan" fieldtype="one-to-many" fkcolumn="stu_id" cfc="StudentSecondSubject" hint="学生辅修信息";
	property name="CETEntries" type="array" lazy="true" inverse="true" cascade="delete-orphan" fieldtype="one-to-many" fkcolumn="stu_id" cfc="CETEntry" hint="四六级报名情况";
	property name="CETScrolls" type="array" lazy="true" inverse="true" cascade="delete-orphan" fieldtype="one-to-many" fkcolumn="stu_id" cfc="CETScroll" hint="四六级成绩";
	property name="Books" type="array" lazy="true" inverse="true" cascade="delete-orphan" fieldtype="one-to-many" fkcolumn="stu_id" cfc="StudentBook" hint="学生教材领用情况";
	property name="Courses" type="array" lazy="true" inverse="true" cascade="delete-orphan" fieldtype="one-to-many" fkcolumn="stu_id" cfc="StudentCourse" hint="学生学期选课记录";
	property name="Exams" type="array" lazy="true" inverse="true" cascade="delete-orphan" fieldtype="one-to-many" fkcolumn="stu_id" cfc="StudentExam" hint="学生学期考试安排";
	property name="ResitExams" type="array" lazy="true" inverse="true" cascade="delete-orphan" fieldtype="one-to-many" fkcolumn="stu_id" cfc="StudentExamResit" hint="学生补考考试安排";
	property name="Marks" type="array" lazy="true" inverse="true" cascade="delete-orphan" fieldtype="one-to-many" fkcolumn="stu_id" cfc="StudentMark" hint="学生成绩记录";
	property name="TempMarks" type="array" lazy="true" inverse="true" cascade="delete-orphan" fieldtype="one-to-many" fkcolumn="stu_id" cfc="StudentMarkTemp" hint="学生成绩临时记录";
	property name="TempResitMarks" type="array" lazy="true" inverse="true" cascade="delete-orphan" fieldtype="one-to-many" fkcolumn="stu_id" cfc="StudentMarkResitTemp" hint="学生补考成绩临时记录";
	property name="MarkAduits" type="array" lazy="true" inverse="true" cascade="delete-orphan" fieldtype="one-to-many" fkcolumn="stu_id" cfc="StudentMarkAduit" hint="成绩更正记录";
	property name="QuestionRespondents" type="array" lazy="true" inverse="true" cascade="delete-orphan" fieldtype="one-to-many" fkcolumn="stu_id" cfc="QuestionRespondent" hint="调查问卷";
	property name="QuestionVotes" type="array" lazy="true" inverse="true" cascade="delete-orphan" fieldtype="one-to-many" fkcolumn="stu_id" cfc="QuestionVote" hint="调查问卷答题情况";

	property name="FormClass" fieldtype="many-to-one" fkcolumn="cls_id" cfc="FormClass" hint="班级";
	property name="IDCardType" fieldtype="many-to-one" fkcolumn="idtype" cfc="IDCardType" hint="身份证件类型";
	property name="BirthPlace" fieldtype="many-to-one" fkcolumn="area_code" cfc="DictionaryChinaArea" hint="籍贯";
	property name="PoliticalStatus" fieldtype="many-to-one" fkcolumn="pa_code" cfc="PoliticalAffiliation" hint="政治面貌";
	property name="Nation" fieldtype="many-to-one" fkcolumn="nation_code" cfc="DictionaryNation" hint="民族";

}

</cfscript>